package com.xjtu.se.homework.client.mainPage;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.sql.Date;

public class PicDto {
    private String u_id;
    private String dev_id;
    static final String AVATAR_DIR = "D:/file";         //图片存储地址
    private String items;                               //API返回值
    private String request_id;
    private String search_id;
    private int ques_class;
    private int ans_num;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date search_time;                             //查询时间
    private String search_image;
    private int is_marked;

    public int getIs_marked() {
        return is_marked;
    }

    public void setIs_marked(int is_marked) {
        this.is_marked = is_marked;
    }

    @Override
    public String toString() {
        return "PicDto{" +
                "u_id='" + u_id + '\'' +
                ", dev_id='" + dev_id + '\'' +
                ", items='" + items + '\'' +
                ", request_id='" + request_id + '\'' +
                ", search_id='" + search_id + '\'' +
                ", ques_class=" + ques_class +
                ", ans_num=" + ans_num +
                ", search_time=" + search_time +
                ", search_image='" + search_image + '\'' +
                '}';
    }

    public String getU_id() {
        return u_id;
    }

    public void setU_id(String u_id) {
        this.u_id = u_id;
    }

    public String getDev_id() {
        return dev_id;
    }

    public void setDev_id(String dev_id) {
        this.dev_id = dev_id;
    }

    public static String getAvatarDir() {
        return AVATAR_DIR;
    }

    public String getItems() {
        return items;
    }

    public void setItems(String items) {
        this.items = items;
    }

    public String getRequest_id() {
        return request_id;
    }

    public void setRequest_id(String request_id) {
        this.request_id = request_id;
    }

    public String getSearch_id() {
        return search_id;
    }

    public void setSearch_id(String search_id) {
        this.search_id = search_id;
    }

    public int getQues_class() {
        return ques_class;
    }

    public void setQues_class(int ques_class) {
        this.ques_class = ques_class;
    }

    public int getAns_num() {
        return ans_num;
    }

    public void setAns_num(int ans_num) {
        this.ans_num = ans_num;
    }

    public Date getSearch_time() {
        return search_time;
    }

    public void setSearch_time(Date search_time) {
        this.search_time = search_time;
    }

    public String getSearch_image() {
        return search_image;
    }

    public void setSearch_image(String search_image) {
        this.search_image = search_image;
    }
}
